
$(function(){
    //下一页
    $("#nextPage").click(
        function(){
            var nextPage=true;
            if(!/^[0-9]{4}$/.test($("#yzm").val().trim())){
                $.toast("验证码未正确","text");
                nextPage=false;
                return;
            }
            if(nextPage){
                AjaxRequest({
                    url:_url+"/money/login/messageproving",
                    load:true,
                    data:{
                        accountnumber:JSON.parse(sessionStorage.username),
                        code:$("#yzm").val().trim()
                    },
                    type:"post",
                    success(res){
                        console.log(res)
                        if(isReqSucceed(res)){
                            $(window).attr("location","./setLoginPassword.html");
                        }
                    }
                });
            }
        }
    );
})